﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Face8280WebSocketServer.DB.People
{
    [Table("FacePeopleInfo")]
    public class FacePeopleInfo
    {
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public uint Code { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public string Group { get; set; }
        /// <summary>
        /// 职务
        /// </summary>
        public string Job { get; set; }
        /// <summary>
        /// 卡号
        /// </summary>
        public ulong Card { get; set; }
        /// <summary>
        /// 个人密码
        /// </summary>
        public string Pin { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string IdentityId { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone { get; set; }

        public byte Admin { get; set; }
        /// <summary>
        /// 图片地址
        /// </summary>
        public string Photo { get; set; }
        [NotMapped]
        public byte[] PhotoData { get; set; }
    }
}
